package lukasik;

import javax.inject.Inject;

import lukasik.dumb.DumbService;
import lukasik.smart.SmartService;

public class App
{

    private SmartService smartService;
    private DumbService dumbService;

    @Inject
    public App( SmartService smartService, DumbService dumbService )
    {
        this.smartService = smartService;
        this.dumbService = dumbService;
    }

    public void run()
    {
        smartService.doIt();
        dumbService.doDumbThings();
    }
}
